package tt.lab.pmbok.dto;

import java.util.ArrayList;
import java.util.List;

public class ToolDTO {
	private int id;
	private String name;
	private List<ProcessDTO> processes = new ArrayList<ProcessDTO>();
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ToolDTO(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public List<ProcessDTO> getProcesses() {
		return processes;
	}
	public void setProcesses(List<ProcessDTO> processes) {
		this.processes = processes;
	}
	public void addProcess(ProcessDTO process){
		this.getProcesses().add(process);
	}
}
